package org.dormnet.dao.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.dormnet.dao.bean.Stubasic;
public class StubasicMapping implements BeanMapping {

	public Object mapping(ResultSet resultSet) throws SQLException {
		Stubasic stubasic = new Stubasic();
		stubasic.setStudentid(resultSet.getString("studentid"));
		stubasic.setEmail(resultSet.getString("email"));
		stubasic.setGrade(resultSet.getInt("grade"));
		stubasic.setPassword(resultSet.getString("password"));
		stubasic.setDormid(resultSet.getInt("dormid"));
		stubasic.setUsername(resultSet.getString("Username"));
		stubasic.setValidation(resultSet.getInt("validation"));
		return stubasic;
	}

}
